#from numpy import matrix
#from numpy import linalg
import os
import fileinput
import sys

files=['cylinder']
graphexe='tpcd.exe'

for fname in files:

#    mname=sys.argv[1]
#    oname=sys.argv[2]
    mname = fname + '.m'
    oname = 'tpcd_'+fname + '_q.txt'

    cmd = graphexe + ' ' + mname + ' ' + oname

    print(cmd)

    failure = os.system(cmd)

    if failure:
        print(cmd + ' failed\n');
    else:
        print(cmd + ' succeeded\n');
